<template>
  <div class="app-wrapper">
    <el-container class="layout-container">
      <el-header class="layout-header">
        <Header/>
      </el-header>
      <el-container class="layout-content">
        <el-aside width="240px" class="layout-aside">
          <div class="aside-wrapper">
            <Aside/>
          </div>
        </el-aside>
        <el-main class="layout-main">
          <div class="main-wrapper">
            <Main/>
          </div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import Header from "../quanbu/head/index01.vue"
import Aside from "../quanbu/left/index02.vue"
import Main from "../quanbu/right/index03.vue"
</script>

<style scoped>
.app-wrapper {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
  overflow: hidden;
}

.layout-container {
  height: 100%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.layout-header {
  background: rgba(255, 255, 255, 0.95);
  height: 64px;
  padding: 0 24px;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.layout-content {
  height: calc(100vh - 64px);
  padding: 24px;
  gap: 24px;
}

.layout-aside {
  background: transparent;
  transition: all 0.3s ease;
}

.aside-wrapper {
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.aside-wrapper:hover {
  transform: translateY(-2px);
}

.layout-main {
  padding: 0;
  transition: all 0.3s ease;
}

.main-wrapper {
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 24px;
  overflow: auto;
  transition: transform 0.3s ease;
}

.main-wrapper:hover {
  transform: translateY(-2px);
}

/* 自定义滚动条样式 */
.main-wrapper::-webkit-scrollbar {
  width: 6px;
}

.main-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.main-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

@media screen and (max-width: 768px) {
  .layout-content {
    padding: 16px;
    gap: 16px;
  }
  
  .main-wrapper,
  .aside-wrapper {
    border-radius: 12px;
    padding: 16px;
  }
  
  .layout-header {
    padding: 0 16px;
    height: 56px;
  }
}

/* 添加暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .app-wrapper {
    background: linear-gradient(135deg, #1a1c1e 0%, #2d3035 100%);
  }
  
  .layout-header,
  .aside-wrapper,
  .main-wrapper {
    background: rgba(30, 32, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .main-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
  }
}
</style>